package com.example.cuckoofilterdemo.exception;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

// 定义 ErrorCode 枚举
//@Data
public enum ErrorCode {
    INTERNAL_ERROR(500, "服务器内部错误"), PARAM_ERROR(500, "发生错误，请联系开发人员");

    @Getter
    @Setter
    private final int code;
    @Getter
    @Setter
    private final String msg;
    ErrorCode(int code, String msg) { this.code = code; this.msg = msg; }
}

